package com.github.gaojh.mvc.filter;

import com.github.gaojh.server.http.HttpContext;

/**
 * @author 高建华
 * @date 2019-01-13 21:36
 */
public interface Filter {

    /**
     * 前置处理
     * @param httpContext
     * @return
     * @throws Exception
     */
    boolean doBefore(HttpContext httpContext) throws Exception;

    /**
     * 后置处理
     * @param httpContext
     * @throws Exception
     */
    void doAfter(HttpContext httpContext) throws Exception;

}
